<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#31E8D6'
					}
				},
				url: "",
				title: "",
			}
		},
		onLoad(e) {
			this.url = e.url;
			this.title = e.title;
			uni.setNavigationBarTitle({
				title: this.title
			})
		}
	}
</script>

<style>

</style>
